package com.xc.h05.mapper;

import com.xc.h05.entity.Publicity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

import java.util.List;

/**
* @author 30658
* @description 针对表【publicity】的数据库操作Mapper
* @createDate 2025-03-07 19:54:45
* @Entity com.xc.h05.entity.Publicity
*/
@Mapper
public interface PublicityMapper {
    //根据id删除
    int deleteByPrimaryKey(Integer id);
    //插入
    int insert(Publicity record);

    int insertSelective(Publicity record);
    //根据id查询
    Publicity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Publicity record);
    //根据id修改
    int updateByPrimaryKey(Publicity record);
    //分页动态查询所有
    List<Publicity> selectAll(Publicity publicity);
    //批量删除
    int deleteByIds(List<Integer> ids);

//    分页查询
    List<Publicity> selectByPage();
}
